import { count } from '@/js/count.js'
import { cloneDeep } from 'lodash'
import lodashEs from 'lodash-es'
import '../assets/css/index.css'
import '../assets/css/index.less'
import style1 from '../assets/css/index.module.css'
import style from '../assets/css/index.module.less'
import '../assets/postcss/postcss.css'
import img from '/public/1122.jpg'
import copySvg from '/public/copy.svg?raw'

console.log(count)

console.log(lodashEs)

console.log(import.meta.env)

console.log(style)

console.log(style1)

console.log('img', img)
console.log('img1', copySvg)

console.log(' cloneDeep', cloneDeep({}))

function render() {
  document.body.innerHTML = `111223312333411 `
}

render()

fetch('/api/getUser', {
  method: 'get',
}).then(res => {
  console.log(res)
})

// 热更新
if (import.meta.hot) {
  import.meta.hot.accept(newModule => {
    newModule.render()
  })
}
